package com.test.vue.service.impl;

import com.test.vue.entity.Country;
import com.test.vue.entity.CountryExample;
import com.test.vue.mapper.CountryMapper;
import com.test.vue.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CountryServiceImpl implements CountryService {

    @Autowired
    CountryMapper countryMapper;

    @Override
    public List<Country> getCountryList() {
        CountryExample example = new CountryExample();
        List<Country> list = countryMapper.selectByExample(example);
        return list;
    }
}
